import java.util.Scanner;
import java.text.MessageFormat;

public class Test1 {
    //1、输入3个班，每班5个学生的成绩，求每个班的总分、平均分、最高分、最低分。
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);

        for (int i = 1; i <= 3; i++) {
            double avg;
            double score;
            double sum = 0.0;
            double max = 0.0;
            double min = 100;
            for (int j = 1; j <= 5; j++) {
                System.out.print("第" + i + "班，第" + j + "个学生的成绩：");
                score = in.nextDouble();
                sum += score;

                if (score > max) {
                    max = score;
                }

                if (score < min) {
                    min = score;
                }
            }

            avg = sum / 5;
            System.out.println(i + "班的总分：" + sum + ",平均分：" + avg + ",最高分：" + max + ",最低分：" + min);
        }
    }
}
